package com.jt.demo1.service;


import com.jt.demo1.anno.TX;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @TX
    @Override
    public void addUser() {
        System.out.println("添加用户成功！！！！！！！");
//        int a = 1/0;
    }
    @TX
    @Override
    public String findName() {
        System.out.println("好得很");
        int a = 1/0;
        return "春节愉快！！！";
    }
}
